package com.e.dianshang.service.impl;

import com.e.dianshang.mapper.GoodsClassThreeMapper;
import com.e.dianshang.pojo.GoodsClassThree;
import com.e.dianshang.service.GoodsClassThreeService;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: HP
 * Date: 2020/11/11 19:47
 * Description:
 */
@Data
@NoArgsConstructor
@Service("GoodsClassThreeService")
public class GoodsClassThreeServiceImpl implements GoodsClassThreeService {

    @Resource
    GoodsClassThreeMapper goodsClassThreeMapper;

    @Override
    public List<GoodsClassThree> findAllClassThreeByEId(Integer EId) {
        Example example = new Example(GoodsClassThree.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.orEqualTo("gtEId",EId);

        return goodsClassThreeMapper.selectByExample(example);
    }
}
